package br.com.comanda.pojo;

import br.com.comanda.dao.autosql.annotations.Column;
import br.com.comanda.dao.autosql.annotations.Id;
import br.com.comanda.dao.autosql.annotations.Table;

@Table(name = "CONFIGURACAO")
public class Configuracao {

	@Id(autoIncrement = false)
	@Column(name = "ID")
	private long id;

	@Column(name = "LOGIN_USUARIO")
	private String loginUsuario;

	public Configuracao() {
		super();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLoginUsuario() {
		return loginUsuario;
	}

	public void setLoginUsuario(String loginUsuario) {
		this.loginUsuario = loginUsuario;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof Configuracao)) {
			return false;
		}

		Configuracao other = (Configuracao) obj;
		if (id != other.id) {
			return false;
		}
		return true;
	}
}
